
package com.pc.admin.eunms;

import lombok.Getter;

@Getter
public enum CodeEnum implements ResultEnumType<Integer,String>{
    LACK_OF_PARAM(100,"缺少参数"),
    SUCCESS(200, "请求成功"),
    FAIL(201, "操作失败"),
    SIGN_VERIFY_FAIL(204, "签名验证失败"),
    TOKEN_OVERDUE(205, "token过期"),
    ACCOUNT_FREEZE(206, "您的账号被冻结，请联系客服人员，电话：0755-26412603"),
    MOBILE_PHONE_NUMBER_IS_ILLEGAL(207, "手机格式不正确"),
    USER_NO_LOGIN(208, "用户未登录"),
    UNABLE_TO_DELETE_SUPER_PIPE(209, "无法删除超管"),
    TOKEN_VERIFICATION_FAILED(401, "token验证失败,请重新登录"),
    USER_NOT_AUTHORITY(403, "无没有权限访问"),
    SYSTEM_ERROR(500, "系统错误"),
    SYSTEM_RE_ERROR(501, "不支持当前请求方法"),
    SYSTEM_PA_ERROR(502, "解析参数失败"),
    SMS_CODE_ERROR(555, "发送短信错误"),
    DICTIONARY_CODE_ERROR(601, "字典CODE不能重复"),
    DICTIONARY_VALUE_ERROR(602, "数据值不能重复"),
    DATA_IS_NULL(703, "数据为空"),
    DATA_IS_ERROR(704, "数据不合法，请检查！！"),
    NAME_PASSWORD_ERROR(705, "账号或密码错误"),
    DUPLICATED_DATA_ERROR(706, "重复数据"),
    UNKNOWN_ERROR(-1, "未知错误"),
    CONTENT_ID_IS_NOT(707, "contentId不存在"),
    USER_ID_IS_NOT(708, "userId不存在"),
    ACCESS_DENIED(709, "用户无访问权限，请联系管理员"),
    PAGE_NUM(710, "起始页不能为0"),
    USER_DOES_NOT_EXIST(711, "用户不存在"),
    VERIFICATION_CODE_ERROR(712, "验证码错误"),
    NUMBER_EXISTS(713, "号码已存在"),
    TAG_EXISTS(720, "标签已存在"),
    LABEL_USED(721, "标签已使用"),
    THE_ASSOCIATED_LABEL_CANNOT_BE_EMPTY(722, "关联标签不能为空"),
    SIGN_CHECK_FAIL(723, "签名验证失败"),
    RECOMMEND_USER_DATA_DOES_NOT_EXIST(901, "定时获取推荐数据用户数据不存在"),
    RECOMMEND_ADD_OR_UPDATE_DATA_FAIL(902, "推荐系统更新或者新增商品数据"),
    RECOMMEND_SMART_LABEL_ADD_DATA_FAIL(903, "推荐系统导入智能标签数据失败"),
    CONTENT_CANNOT_MODIFY_PUBLISHED_CONTENT(801, "Cannot modify published content"),
    CONTENT_TAG_SAME_NAME_IS_EXISTS(802, "Label already exists with the same name"),
    CONTENT_TAG_CUSTOM_TAGS_ADD_UP_TO_FIVE(803, "Up to five new custom tags can be added"),
    CONTENT_UNMBER_OF_TAGS_MUST_NOT_EXCEED_LIMIT(804, "The number of tags must not exceed the limit"),
    CONTENT_CONT_FIND_THIS_CONTENT(805, "Can't find this content"),
    CONTENT_PUBLISHE_PROCESS_CANNOT_DELETED(806, "The published process cannot be deleted"),
    CONTENT_PUBLISH_TIME_NEEDS_TO_GREATER_THAN_CURRENT_TIME(807, "The publish time needs to be greater than the current time"),
    CONTENT_EXEPIRATION_TIME_NEDDS_GREATER_THAN_PUBLISH_TIME(808, "The expiration time needs to be greater than the publish time"),
    CONTENT_INFO_IS_DELETED(809, "This content been deleted"),
    CONTENT_ATTACHMENTS_CANNOT_GREATER_THAN_THE_LIMIT(810, "The number of attachments cannot be greater than the limit"),
    CONTENT_ADMIN_ONLY_HAVE_ADD_TAGS(811, "Administrators only have new permissions add tags"),
    CONTENT_REPETITIVE_OPERATION(812, "Repetitive operation");

    private Integer code;
    private String msg;

    private CodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }


    @Override
    public Integer code() {
        return null;
    }

    @Override
    public String msg() {
        return null;
    }
}